// pages/classification/classification.js
Page({
  data: {
    class_item:[]
},
//初始化
onLoad: function (options) {
  var that = this;
  if (this.__data__.msgNum == 0) {
    this.setData({
      isMsg: false
    })
  }
  wx.request({
    url: 'http://127.0.0.1:8080/classfication',
    data: {},
    header: {
      'content-type': 'application/json'
    },
    success: function (res) {
      that.setData({
        class_item: res.data.classfication
      })
    }
  })
},

})